﻿using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Core.Entity.Equipment
{
    /// <summary>
    /// 仪器厂家信息
    /// </summary>
    [Comment("仪器厂家信息")]
    public class EquipmentFactory : DEntityTenant
    {
        /// <summary>
        /// 厂家名称
        /// </summary>
        [Comment("厂家名称")]
        [Required, MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Comment("联系人")]
        public string ContactName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Comment("电话")]
        public string Phone { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        [Comment("联系地址")]
        [MaxLength(100)]
        public string Address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注"), MaxLength(100)]
        public string Remark { get; set; }

        /// <summary>
        /// 仪器集合
        /// </summary>
        public ICollection<EquipmentInfo> EquipmentInfos { get; set; }
    }
}
